<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/view/inc.jsp" %>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

<div class="dialog_form">
    <form id="fm" method="post" action="<%=contextPath%>/sys/user/saveAndUpdate" novalidate>
        <input type="hidden" name="id" value="${user.id}"/>

        <div class="dialog_item">
            <label>用户名:</label>
            <input id="userName" name="userName" class="easyui-textbox" required="true"
                   validType="length[1,20]" value="${user.userName}">
        </div>
        <div class="dialog_item">
            <label>真实姓名:</label>
            <input id="realName" name="realName" class="easyui-textbox" required="true"
                   validType="length[1,20]" value="${user.realName}">
        </div>
        <div class="dialog_item">
            <label>联系电话:</label>
            <input name="tel" class="easyui-textbox" validType="length[0,20]" value="${user.tel}">
        </div>
        <div class="dialog_item">
            <label>邮箱:</label>
            <input name="email" class="easyui-textbox" validType="email" value="${user.email}">
        </div>
        <div class="dialog_item">
            <label>性别:</label>
            <input name="sex" editable="false" value="${user.sex}"
                   class="easyui-combobox" data-options="valueField : 'code',
	    						textField : 'name', url:'<%=contextPath%>/sys/codeItems/byCategoryCode?categoryCode=sex',
								panelHeight:'auto'
							">
        </div>
        <div class="dialog_item">
            <label>机构:</label>
            <input name="orgId" class="easyui-combotree"
                   value="${user.orgId}"
                   data-options=" editable:false,idField:'id',textField:'orgName',parentField:'parentId',url:'<%=contextPath%>/sys/organization/commonTreeMore',method:'get' "/>
        </div>
        <div class="dialog_item">
            <label>状态:</label>
            <input name="status" editable="false" value="${user.status}" required="true"
                   class="easyui-combobox" data-options="valueField : 'code',
	    						textField : 'name', url:'<%=contextPath%>/sys/codeItems/byCategoryCode?categoryCode=userStatus',
								panelHeight:'auto'
							">
        </div>
    </form>
</div>
</body>
</html>